/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chapter3;

/**
 *
 * @author Denise Carolina
 */
public class Arrays {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        int []x = {1,2,3};
        String y[] = {new String(), null, new String()};
        //int [][] z = {{1,2}, {"denise"}};
        int [][] z = {{1,2}, {'a'}}; // char can be used as int??

        int []r = new int [2];
//        r[2] = 4;
        //System.out.println("r[2]" + r[2]); IndexOutOfBoundException

        int [][][] c = new int[2][][];
        //TODO: play with it

        int []w;
        w = new int[1];
        w = new int[]{};
//        w = new int[]null;
        w = new int[]{1,2,50,'c'};
        int i = 0;
        for(int d : w){
            System.out.println("d["+i+"]:: " + d);
            i++;
        }
    }

}
